#include <bits/stdc++.h>

using namespace std;

int main_115()
{
    srand((unsigned)time(0));
    int len=200,rd;
    int hash_table[len+1]={0},arr[len+1]={0};
    for (int i=0;i<len ;++i )
    {
        rd=rand()%len;
        ++hash_table[rd];
        arr[i]=rd;
    }
    for (int i=0;i<len ;++i )
    {
        for (int j=0;j<hash_table[i] ;++j )
        {
            printf("%d ",i);
        }
    }
    printf("\n");
    sort(arr,arr+len);
    for (int i=0;i<len ;++i )
    {
        printf("%d ",arr[i]);
    }
	return 0;
}
